#!/bin/sh

## Bspwm configurations
bspc monitor -d 'I' 'II' 'III' 'IV' 'V'
bspc config focus_follows_pointer   true
bspc config initial_polarity        second_child
bspc config border_width            7
bspc config window_gap              12
bspc config normal_border_color     "#407076"
bspc config focused_border_color    "#dee3e0"
bspc config presel_feedback_color   "#2c3939"
bspc config borderless_monocle      true
bspc config gapless_monocle         true
bspc config split_ratio             0.5
bspc config bottom_padding          36
bspc config left_padding            0
bspc config right_padding           0
bspc config top_padding             0

## Rules
bspc rule -a aria2c desktop='^4' follow=on state=tiled
bspc rule -a 'Pale moon' desktop='^2' follow=on
bspc rule -a TelegramDesktop desktop='^3' follow=off
bspc rule -a Zathura desktop='^4' state=floating follow=on
bspc rule -a Sxiv state=floating center=true
bspc rule -a mpv follow=off state=floating center=true
bspc rule -a Alacritty:alacritty_keys_help state=floating

## Autostart
hsetroot -cover ~/Pictures/Wallpapers/193.jpg

killall -q -9 sxhkd compton dunst
sxhkd &
compton &
dunst &

kill -9 $(pgrep -f tyzbar)
$HOME/.config/bspwm/tyzbar 2>/dev/null &

sleep 1
dunstify "Notification" "Bspwmrc Loaded"
